package warthog.scangen;

import java.util.*;


public class Edge {
	private final CharClass cc;
	private final Node target;
	public Edge(CharClass cc, Node end) { this.cc = cc; target=end; }
	public void updateSubset(Set<Node> subset, Character ch) {
		if (cc.has(ch)) subset.add(target);
	}
	public Collection<Character> bounds() { return cc.bounds(); }
}
